package com.ticket.common.constant;

import com.google.common.collect.Lists;

import java.util.List;

public class PerformConstants {
    //0初始化 1上架 2下架
    public static final Integer SESSION_INIT = 0;
    public static final Integer SESSION_UP = 1;
    public static final Integer SESSION_DOWN = 2;//停售
    public static final Integer SESSION_CANCEL = 3;//取消
    public static final Integer SESSION_SELLING = 4;//销售中

    public static final Integer SESSION_SELLed = 5;//销售结束

    //0表示可用，1表示禁用，2表示售出
    public static final Integer SEAT_USABLE = 0;
    public static final Integer SEAT_SELLED = 2;
    public static final Integer STATE_SEAT_UNUSABLE = 1;
    //座位号类型 0: 1 2 3 4 1:1 3 5 7 2:2 4 6 8
    public static final Integer ROWTYPE_INIT=0;
    public static final Integer ROWTYPE_ODD=1;//奇数
    public static final Integer ROWTYPE_EVEN=2;//偶数

    public static final Integer ROWTYPE_START=1;
    public static final Integer ROWTYPE_START_EVEN=2;

    //座位表0:初始，1：已放票，2：占有票等待支付，3：已支付，4：不外放

    public static final Integer TICKET_SEAT_INIT = 0;
    public static final Integer TICKET_SEAT_OPEN = 1;
    public static final Integer TICKET_SEAT_WAIT_PAY = 2;
    public static final Integer TICKET_SEAT_PAY = 3;
    public static final Integer TICKET_SEAT_NOT_OPEN = 4;
    public static final Integer TICKET_SEAT_CHECKED = 5;
    public static final Integer TICKET_SEAT_CANCEL = 6;

    //1：已占票等待支付，2：已支付，3：超时未支付自动取消  4已验票 5已支付等待退款 6已退款
    public static final Integer ORDER_WAIT_PAY = 1;
    public static final Integer ORDER_PAY = 2;
    public static final Integer ORDER_CANCEL = 3;
    public static final Integer ORDER_CHECKED = 4;

    public static final Integer ORDER_WAIT_REFUND = 5;
    public static final Integer ORDER_REFUND = 6;
    public static final Integer ORDER_REFUNDING = 7;

    public static final Integer ORDER_PASTED = 8;
    public static final Integer ORDER_DEBT = 9;

    public static final Integer SCORE_STATUS_INIT = 0;

    public static final String IDCARD_SUCCESS = "0000";

    public static final String REFUND_SUCCESS = "SUCCESS";
    //退款单状态 1：退款中；2：已退款；3：被驳回；
    public static final Integer REFUND_PROC = 1;
    public static final Integer REFUND_DEALED = 2;
    public static final Integer REFUND_REJECT = 3;

    public static final Integer REFUND_INIT = 0;
    //退款标识 1：整单退款；2：部分退款
    public static final Integer REFUND_FLAG_TOTAL = 1;
    public static final Integer REFUND_FLAG_PART = 2;

    public static final Integer REFUND_TYPE = 1;
    //实名认证类型 1：非实名认证；2：一票一证；3：一单一证
    public static final Integer AUTH_NONE = 1;
    public static final Integer AUTH_TICKET_ONE = 2;
    public static final Integer AUTH_ORDER_ONE = 3;


    public static final List<Long> COMB_AREAS = Lists.newArrayList(6l,7l);//6,7

    public static final List<Long> TAB_AREAS = Lists.newArrayList(14l);//14

    public static final List<Long> TABLE_AREAS = Lists.newArrayList(5l,12l);//5 12

    public static final List<Long> ROWNO_AREAS = Lists.newArrayList(27l,28l,30l,35l,36l,32l,37l,38l,39l);//5 12
    public static final Integer CONSUME_TYPE_RECHARGE = 1;
    public static final Integer CONSUME_TYPE_CARD = 3;
    public static final Integer CONSUME_TYPE_BALANCE = 4;
    public static final Integer REFUND_TYPE_BALANCE = 7;
    public static final Integer REFUND_TYPE_CARD = 6;

    public static final Integer CARD_TYPE_CARD = 1;
    public static final Integer CARD_TYPE_BALANCE = 2;

    public static final Integer CARD_STATUS_SUCCESS = 0;
    public static final Integer CARD_STATUS_REFUND = 2;

    public static final Integer CARD_STATUS_REFUND_PART = 3;


    public static final Integer TICKET_TYPE_WECHAT = 1;//1小程序购票 2后台出票
    public static final Integer TICKET_TYPE_BACKEND = 2;//1小程序购票 2后台出票

    public static final Integer TICKET_PAY = 1;//已付款
    public static final Integer TICKET_NOTPAY = 2;//欠款

    public static final Integer REFUND_BACK_REFUND = 2;//退款单状态 0待退款 2：已退款
    public static final Integer REFUND_BACK_TOBEREFUND = 0;

    public static final Long LIMIT = 1l;//退款单状态 1限购

    public static final Integer ID_TYPE_0 = 0;//0:未知，1：身份证，2：护照 3港澳台通行证及居住证
    public static final Integer ID_TYPE_1 = 1;
    public static final Integer ID_TYPE_2 = 2;
    public static final Integer ID_TYPE_3 = 3;

    public static final Integer PAYWAY_1 = 1;//1对公转账2抖音支付 3微信支付 4现金 5其他
    public static final Integer PAYWAY_2 = 2;
    public static final Integer PAYWAY_3 = 3;
    public static final Integer PAYWAY_4 = 4;
    public static final Integer PAYWAY_5 = 5;
}
